home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 408_01 / dirnews.bat < prev    next >
DOS Batch File  |  1993-08-24  |  430b  |  10 lines

  1. @echo off
  2. rem 93-08-25  Daniel Fandrich
  3. rem Displays a directory, which, if it is a SNews NEWSBASE directory, will
  4. rem contain the newsgroup name and be sorted in order by size.
  5. rem The output is gross, but it's better than just the file names!
  6. rem Requires sed and MS-DOS ver. >= 5.0
  7. sed "s/^\([^ ]*\) \([^ ]*\).*$/s@\2@\1     \2@/" ..\active > %temp%dirnews.$$$
  8. dir /os *. | sed -f %temp%dirnews.$$$
  9. del %temp%dirnews.$$$
  10.